

    <a class="button right" href="/panel/editor/?to=<?=page::url(1) ?>">Create new</a>

	<table id="children">
		<tr>
			<th>Title</th>
			<th>Date</th>
			<th>Permalink</th>
			<th>Full path</th>
			<th>Type</th>
			<th>Edit</th>
			<th>Delete</th>
		</tr>
		<?php foreach ( $children as $ch ): ?>

		<tr>
			<td><a href="/panel/editor/<?=$ch->id ?>/?act=children"><?=$ch->title ?></a></td>
			<td><?=$ch->date ?></td>
			<td><?=$ch->permalink ?></td>
			<td><?=$ch->fullpath ?></td>
			<td><?=$ch->type ?></td>
			<td><a href="/panel/editor/<?=$ch->id ?>/?act=html"><img src="/img/edit.gif" alt="edit"></a></td>
			<td><a href="?act=children&delete=<?=$ch->id ?>" onclick="if(!confirm('Are you sure?'))return false;"><img src="/img/delete.gif" alt="X"></a></td>
		</tr>
		<?php endforeach; ?>

	</table>

